<template>
  <XnDialog custom-class="eva_dialog" :title="title" :visible.sync="leaderEvaShow" @close="leaderEvaShow = false">
    <template v-if="infoData.leaderScoringExpressionVO">
      <div class="box_title">承担急难险重任务、处理复杂问题、应对重大考验、防范重大风险的表现</div>
      <div class="box_content">
        {{ infoData.leaderScoringExpressionVO.expression }}
      </div>
    </template>
    <template v-if="infoData.leaderScoringSuggestVO">
      <div class="box_title">领导点评</div>
      <div class="box_content">
        {{ infoData.leaderScoringSuggestVO.suggestion }}
      </div>
    </template>
    <template v-if="infoData.leaderRemark">
      <div class="box_title">备注</div>
      <div class="box_content">
        {{ infoData.leaderRemark }}
      </div>
    </template>
  </XnDialog>
</template>

<script>
import XnDialog from '@com/xnDialog.vue'
export default {
  props: {
    userInfoData: {
      type: Object,
      default: () => {},
    },
  },
  components: { XnDialog },
  data() {
    return {
      leaderEvaShow: false,
      infoData: {},
      title: '分管领导评价',
    }
  },
  watch: {
    userInfoData: {
      handler(news) {
        this.infoData = news
      },
      deep: true,
      immediate: true,
    },
  },
  created() {},
  mounted() {
    const isMain1 = this.$route.query.busSign === 'DEAL_MAIN_LEADER_ASSESS_11'
    const isLeader2 = this.$route.query.busSign === 'DEAL_MAIN_LEADER_ASSESS_10'
    this.title = isMain1 ? '分管负责人评价' : isLeader2 ? '部门负责人评价' : '分管领导评价'
  },
  methods: {},
}
</script>

<style lang="scss" scoped>
.eva_dialog {
  display: flex;
  align-items: center;
  font-size: 20px;
  padding-left: 20px;
  color: #333;
  /deep/ .el-dialog__headerbtn .el-dialog__close {
    color: #fff;
  }
  /deep/ .el-dialog__headerbtn {
    top: 17px;
  }

  /deep/ .el-dialog__header {
    background: #004db6;
    padding: 13px 10px 10px 10px;
  }
  /deep/ .el-dialog__title {
    line-height: 6px;
    font-size: 20px;
    color: #fff;
    padding-left: 5px;
  }
  /deep/ .el-dialog__body {
    padding: 20px 20px 10px;
    font-size: 16px;
    line-height: 30px;
    /deep/.el-checkbox__label {
      font-size: 14px;
    }
  }
  .box_title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
  }
  .box_content {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    &:last-child {
      margin-bottom: 10px;
    }
  }
}
</style>
